package com.carltechnology.mahjonggamecaculation.presenter.impl;

import com.carltechnology.mahjonggamecaculation.base.MyAbstractSubscriber;
import com.carltechnology.mahjonggamecaculation.dao.DataManager;
import com.carltechnology.mahjonggamecaculation.mode.IGameData;
import com.carltechnology.mahjonggamecaculation.presenter.IMahjongDetailPresenter;
import com.carltechnology.mahjonggamecaculation.views.IMahjongDetailView;

/**
 * Created by WZTCM on 2016/6/28.
 */
public class MahjongDetailPresenter implements IMahjongDetailPresenter {
    private IMahjongDetailView mView;

    private MahjongDetailPresenter(IMahjongDetailView view){
        mView = view;

    }


    public static MahjongDetailPresenter newInstance(IMahjongDetailView view){
        return new MahjongDetailPresenter(view);
    }
    @Override
    public void updateGameDateBase(IGameData mode) {
        DataManager.getInstance().getModifyHelper().modifyGameData(new UpdateGameDataBase(), mode);
    }

    public class UpdateGameDataBase extends MyAbstractSubscriber<IGameData> {

        @Override
        public void onNext(IGameData mode) {

        }
    }

}
